import service from '../utils/request.js'; // 引入二次封装的 axios

// 活动报名管理
export const deleteActivityRegistrationById = (id) => {
    return service.post(`/api/admin/activityRegistration/delete/${id}`);
};

export const getActivityRegistrationById = (id) => {
    return service.get(`/api/admin/activityRegistration/detail/${id}`);
};

export const listActivityRegistrations = (queryDTO) => {
    return service.post('/api/admin/activityRegistration/list', queryDTO);
};

export const reviewActivityRegistration = (reviewDTO) => {
    return service.post('/api/admin/activityRegistration/review', reviewDTO);
};

export const countActivityRegistration = () => {
    return service.get(`/api/admin/activityRegistration/count`);
};
export const AddActivityRegistration = (id) => {
    return service.get(`/api/client/activityRegistration/AddActivityRegistration/${id}`);
};